I've not pulled from a config doc, but it's easy to compute the datasources.
session.getDatabase(database.getServer(),”db.nsf”)
Watch out in 8.5.1 Xpages in the Notes Client
@Name(“[CN]”,@Subset(@DbName(),1))+”!!db.nsf”
Seems to work everywhere in 8.5.1
I would image that you can pull params from a config doc and build the strings with them...
Assuming I'm understanding your idea correctly.
What I tried to do a while ago is create a custom control to just contain the datasources. I wanted to use them
on other custom controls/xpages to easily add in a dataSource - but alas that didn't work because of scope issues.